package com.ifsaid.im.mapper;

import com.ifsaid.im.common.mapper.IBaseMapper;
import com.ifsaid.im.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

/**
 * @description: 用户表 mapper 类
 * @author: Wang Chen Chen <932560435@qq.com>
 * @date: 2019/4/18 11:35
 * @version: 1.0
 */

@Mapper
public interface UserMapper extends IBaseMapper<Integer, UserEntity> {

    /**
     * @description: 根据用户名获取用户信息
     * @date: 2019/11/4 13:58
     */
    UserEntity findUserByUsername(String username);

    /**
     * @description: 获取某个用户的 朋友列表
     * @date: 2019/11/4 13:58
     */
    Set<UserEntity> findFriendList(Integer myId);

}


